import sys


if len(sys.argv)<2:
     print("usage:")
     exit(0)

if len(sys.argv)==3:
	dir=sys.argv[2]
else:
	dir=''

myfile = open(dir+'\\'+sys.argv[1], "w")

s='__'+sys.argv[1].replace('.','_').replace('-','_')+'__'

s1="""
#ifndef {0}
#define {0}

#endif//{0}""".format(s)


myfile.write(s1)

myfile.close()